package com.bone.order.po;

import java.util.Date;

import com.bone.constant.Constant;
import com.bone.util.PriceUtil;

public class OrdRefundment  implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4948917275751888356L;
	
	private Long refundmentId;
	private String orderNo;
	private String refundType;
	private Long refundAmount;
	private Long actualAmount;

	private String memo;
	private String status;
	private Date createTime;
	private Date refundTime;
	private Date approveTime;
	private String operatorName;
	
	private Long saleServiceId;
 
	private Date allowRefundTime;
	
	private float refundAmountFloat;
	private float actualAmountFloat;
	
	public String getRefundStatusZh() {
		return Constant.REFUNDMENT_STATUS.getCnName(this.getStatus());
	}
	public String getRefundTypeZh() {
		return Constant.REFUNDMENT_TYPE.getCnName(this.getRefundType());
	}
	

	public float getRefundAmountFloat() {
		if (refundAmount != null) { 
			this.refundAmountFloat = PriceUtil.convertToYuan(refundAmount.longValue());
		}
		return refundAmountFloat;
	}

	public void setRefundAmountFloat(float refundAmountFloat) {
		this.refundAmountFloat = refundAmountFloat;
	}

	public float getActualAmountFloat() {
		if (actualAmount != null) {
			this.actualAmountFloat = PriceUtil.convertToYuan(actualAmount.longValue());
		}
		return actualAmountFloat;
	}

	public void setActualAmountFloat(float actualAmountFloat) {
		this.actualAmountFloat = actualAmountFloat;
	}

	
	public Long getRefundmentId() {
		return refundmentId;
	}
	public void setRefundmentId(Long refundmentId) {
		this.refundmentId = refundmentId;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getRefundType() {
		return refundType;
	}
	public void setRefundType(String refundType) {
		this.refundType = refundType;
	}
	public Long getRefundAmount() {
		return refundAmount;
	}
	public void setRefundAmount(Long refundAmount) {
		this.refundAmount = refundAmount;
	}
	public Long getActualAmount() {
		return actualAmount;
	}
	public void setActualAmount(Long actualAmount) {
		this.actualAmount = actualAmount;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getRefundTime() {
		return refundTime;
	}
	public void setRefundTime(Date refundTime) {
		this.refundTime = refundTime;
	}
	public Date getApproveTime() {
		return approveTime;
	}
	public void setApproveTime(Date approveTime) {
		this.approveTime = approveTime;
	}
	public String getOperatorName() {
		return operatorName;
	}
	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}
	public Long getSaleServiceId() {
		return saleServiceId;
	}
	public void setSaleServiceId(Long saleServiceId) {
		this.saleServiceId = saleServiceId;
	}
	public Date getAllowRefundTime() {
		return allowRefundTime;
	}
	public void setAllowRefundTime(Date allowRefundTime) {
		this.allowRefundTime = allowRefundTime;
	}
	
 
}
